
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Tagjob

	/// <summary>
	/// Tagjob object for NHibernate mapped table 'tagjob'.
	/// </summary>
	public class Tagjob
		{
		#region Member Variables
		
		protected int _tagjob_id;
		protected string _tagjob_text;
		protected int _tagjob_count;
		protected short _tagjob_bin_day;
		protected short _tagjob_bin_week;
		protected IList _tagjobmap_tagtagjobmaps;

		#endregion

		#region Constructors

		public Tagjob() { }

		public Tagjob( string tagjob_text, int tagjob_count, short tagjob_bin_day, short tagjob_bin_week )
		{
			this._tagjob_text = tagjob_text;
			this._tagjob_count = tagjob_count;
			this._tagjob_bin_day = tagjob_bin_day;
			this._tagjob_bin_week = tagjob_bin_week;
		}

		#endregion

		#region Public Properties

		public virtual int Tagjob_id
		{
			get {return _tagjob_id;}
			set {_tagjob_id = value;}
		}

		public virtual string Tagjob_text
		{
			get { return _tagjob_text; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Tagjob_text", value, value.ToString());
				_tagjob_text = value;
			}
		}

		public virtual int Tagjob_count
		{
			get { return _tagjob_count; }
			set { _tagjob_count = value; }
		}

		public virtual short Tagjob_bin_day
		{
			get { return _tagjob_bin_day; }
			set { _tagjob_bin_day = value; }
		}

		public virtual short Tagjob_bin_week
		{
			get { return _tagjob_bin_week; }
			set { _tagjob_bin_week = value; }
		}

		public virtual IList tagjobmap_tagtagjobmaps
		{
			get
			{
				if (_tagjobmap_tagtagjobmaps==null)
				{
					_tagjobmap_tagtagjobmaps = new ArrayList();
				}
				return _tagjobmap_tagtagjobmaps;
			}
			set { _tagjobmap_tagtagjobmaps = value; }
		}      

        
		#endregion
		
        
	}

	#endregion
}
